
Page({
  data: {
    imgUrls: [
      '/static/image/lb1.jpg',
      '/static/image/lb2.jpg',
      '/static/image/lb3.jpg',
    ]
  },

  service:function(){
    wx.switchTab({
      url: '../activity/activity',
    })
  },
  
  
  //修改2022/6/4
  register:function(){
    console.log(wx.getStorageSync("userInfo"))
    if(!wx.getStorageSync("userInfo")){
      wx.switchTab({
        url: '/pages/person/person',
      })
    }

    if(wx.getStorageSync("identity") === 'old' || wx.getStorageSync("identity") === 'vol'){
      wx.showToast({
        title: '你已注册',
      })
    }
    if(wx.getStorageSync("identity") === ''){
      wx.navigateTo({
        url: '/pages/enroll/enroll',
      })
    }
  },
  //end


  
  rank:function(){
    wx.navigateTo({
      url: '../rank/rank',
    })
  },
  score:function(){
    wx.navigateTo({
      url: '/pages/exchange/exchange',
    })
  }


});